package b2.widget.vip
{
	import b2.widget.BasicButton;
	import b2.net.*;
	import b2.util.*;
	
	import flash.events.*;
	import flash.external.*;

	public class VipButtonOpen extends BasicButton
	{
		public function VipButtonOpen()
		{
			var BackgroundImage:Class = ResourceHelper.getInstance().getClassByName("VipButtonOpen");
			super(BackgroundImage);
			this.mouseChildren = false;
			this.addEventListener(MouseEvent.CLICK, onClick);
		}
		
		private function onClick(event:MouseEvent):void
		{
			ExternalInterface.call("window.open", Profile.URL_VIP);
		}
	}
}